<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
 pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="eBrain.beans.User"%>
<jsp:useBean id="dataManager" scope="application"
  class="eBrain.model.DataManager"/>
  
<%String base = (String)application.getAttribute("base"); %>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="/eBrain/css/eshop.css" type="text/css"/>
</head>
<body>
<jsp:include page="TopMenu.jsp" flush="true"/>
<jsp:include page="LeftMenu.jsp" flush="true"/>



 <div class="content">
    <form action="<%=base%>?action=addUser" method="post">
    	<table>
        <tr>
          <td>Username:</td>
          <td>
            <input type="text" name="username"
              value="">
          </td>
        </tr>
        <tr>
          <td>Firstname:</td>
          <td>
            <input type="text" name="firstname"
               value="">
          </td>
        </tr>
        <tr>
          <td>Lastname:</td>
          <td>
            <input type="text" name="lastname"
               value="">
          </td>
        </tr>
        <tr>
          <td>E-Mail:</td>
          <td>
            <input type="text" name="email"
               value="">
          </td>
        </tr>
       <tr>
          <td>Gender:</td>
          <td>
            <input type="radio" name="gender" value=""> m
            <input type="radio" name="gender" value=""> f
          </td>
        </tr>
        <tr>
          <td>Password:</td>
          <td>
            <input type="password" name="password"
               value="">
          </td>
        </tr>
        <tr>
          <td>Birthday:</td>
          <td>
            <input type="text" name="birthday"
               value="">
          </td>
        </tr>
        <tr>
          <td>Street:</td>
          <td>
            <input type="text" name="street"
               value="">
          </td>
        </tr>
         <tr>
          <td>City & ZIP:</td>
          <td>
            <input type="text" name="city"
               value="">
            <input type="text" name="ZIP" size="10"
               value="">
          </td>
        </tr>
        <tr>
          <td>Country:</td>
          <td>
            <input type="text" name="country"
               value="">
          </td>
        </tr>
          <tr>
          <td colspan=2>
            <input type="submit" value="Speichern">
          </td>
        </tr>
      </table>
    
     <div>  
     	<font color="red">
      			<%	String msg = (String)session.getAttribute("msg");
      				if(msg!=null){
     					out.print(msg);
     					session.removeAttribute("msg");
      				} %>
   		 </font>
    </div>
    </form>
    </div>
    
 
</body>
</html>